package com.leizi.igym.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.leizi.igym.domain.Lost;
import com.leizi.igym.dto.*;
import com.leizi.igym.vo.LostVO;

import java.io.IOException;
import java.util.List;

/**
* @author PC
* @description 针对表【t_lost】的数据库操作Service
* @createDate 2024-04-19 22:33:57
*/
public interface LostService extends IService<Lost> {

    boolean saveInAdminAndUser(LostAddDTO dto);

    boolean deleteLostInAdminAndUser(Long id) throws IOException;

    boolean deleteLostBatchInAdmin(List<Long> ids);

    boolean updateInAdminAndUser(LostDTO dto) throws IOException;

    Page<LostESDTO> getVOPage(LostPageQueryDTO dto) throws IOException;

    LostVO getVOById(Long id);

    boolean changeStatus(Long id, Integer status);
}
